package com.example.communist_app_api.service;


import com.example.communist_app_api.db.pojoDto.NoticeEntity;
import com.example.communist_app_api.db.pojoDto.NoticeRefEntity;
import com.example.communist_app_api.vo.uniapp.req.NoticeShowReq;
import com.github.pagehelper.PageInfo;

import java.util.HashMap;
import java.util.List;

public interface NoticeService {

    public String insertNotice(NoticeEntity entity);


    public PageInfo<HashMap> searchNoticeByPage(NoticeShowReq req, int userId);

    public List<HashMap> searchMessageByPageUniApp(int userId, long start, int length);

    public PageInfo<HashMap> searchNoticeByWeb(NoticeShowReq req,Integer userId);

    public HashMap searchNoticeById(String id);

    public String insertNoticeRef(NoticeRefEntity entity);
    public long searchUnreadCount(int userId);

    public long searchLastCount(int userId);

    public long updateUnreadCount(String id);
    public long deleteNoticeRefById(String id);

    public long deleteUserNoticeRef(int userId);

    public long deleteNoticeById(String id);

    List<String> selectAlreadyReadUser(String id);
}
